package com.ynny.exaple;

public class Cylinder  extends Circle{
    private double height;


    public Cylinder(){
        height = 1;
    }
    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }


    //圆柱的体积
    public double findVolume(){

        //圆的面积
        //  double s = 3.14 * r * r * height;
        double s = findArea() * height;

        return s;

    }
}
